package com.qiaofang.applet.service.other.domain;

import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "other_short_code")
@ApiModel("短码表")
@NoArgsConstructor
@CompoundIndexes({
        // 唯一复合索引
        @CompoundIndex(name = "code_type", def = "{'code' : 1, 'businessType': 1}", unique = true)
})
@Deprecated
public class ShortCode extends BaseDomain {

    @ApiModelProperty("短码")
    private String code;

    @ApiModelProperty("业务类型：1 新房  2 二手房  3 租房  4 经纪人")
    private Integer businessType;

    @ApiModelProperty("资讯详情")
    private String businessUniqueUuid;
}
